import { http } from "@/utils/http";
import {baseUrlApi} from "@/api/utils";

type Result = {
  success: boolean;
  data: Array<any>;
};

// export const getAsyncRoutes = () => {
//   return http.request<Result>("get", "/get-async-routes");
// };
export const getAsyncRoutes = (data?: object) => {
  return http.request<Result>("get", baseUrlApi("menu/queryByUserId"), {  });
};
